using System.Text.Json.Serialization;

namespace Eamon.MeituanDotnetSDK.model.ddzh.ugc.ugcQueryShopReview
{
    /// <summary>
    /// 详细评分，比如菜品、服务、环境等
    /// </summary>
    public class ScoreDetail
    {
        /// <summary>
        /// 评分名称，比如环境、服务、菜品等
        /// </summary>
        [JsonPropertyName("title")]
        public string Title { get; set; }

        /// <summary>
        /// 具体评分值
        /// </summary>
        [JsonPropertyName("score")]
        public int? Score { get; set; }

        /// <summary>
        /// 精确评分值（用户打半星时才会出现）
        /// </summary>
        [JsonPropertyName("accurateScore")]
        public int? AccurateScore { get; set; }

        public override string ToString()
        {
            return $"ScoreDetail{{Title={Title}, Score={Score}, AccurateScore={AccurateScore}}}";
        }
    }
}
